package com.scu.hotelsystem.dao;

import com.scu.hotelsystem.pojo.Guest;
import com.scu.hotelsystem.pojo.GuestSearch;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GuestDao {

    /*
    获取所有的客人列表
    @return
     */

    //public List<Guest> getGuestList();


    public List<Guest> getGuestListByPage(@Param("index")int index, @Param("limit")int limit, @Param("search")GuestSearch search);

    public  int getGuestCount(@Param("search")GuestSearch search);

    /*
    根据id删除房客
     */
    public int delGuest(@Param("id")Integer id);

    int addGuest(@Param("guest") Guest guest);
}
